﻿namespace EasyCMS.Core
{
    using System;
    using Pismire;

    public class Members : Common.IMembers
    {
        #region Dal
        /// <summary>
        /// 通过依赖注入确定使用的数据源
        /// </summary>
        internal Dals.IMember Dal
        {
            get
            {
                lock (syncDal)
                {
                    if (m_Dal == null)
                    {
                        m_Dal = EasyCMS.Common.Runtime.ObjectContainer.Resolve<Dals.IMember>();
                    }
                }
                return m_Dal;
            }
        }
        private Dals.IMember m_Dal;
        private object syncDal = new object();
        #endregion

        #region IMembers 成员

        public EasyCMS.Common.DataComponents.Member GetByID(int id)
        {
            throw new NotImplementedException();
        }

        public EasyCMS.Common.DataComponents.Member GetByUser(string userProviderName, string userProviderKey)
        {
            throw new NotImplementedException();
        }

        public System.Collections.Generic.List<EasyCMS.Common.DataComponents.Member> GetList(EasyCMS.Common.Querys.Member query)
        {
            throw new NotImplementedException();
        }

        public System.Collections.Generic.List<EasyCMS.Common.DataComponents.Member> GetList(EasyCMS.Common.Querys.Member query, out int recordCount)
        {
            throw new NotImplementedException();
        }

        public ExcuteState Add(ref EasyCMS.Common.DataComponents.Member member)
        {
            throw new NotImplementedException();
        }

        public ExcuteState Update(ref EasyCMS.Common.DataComponents.Member member)
        {
            throw new NotImplementedException();
        }

        public ExcuteState Delete(int id)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
